package org.suyafei.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.suyafei.utils.JsonData;

/**
 * @author 宿某人
 * @Date: 2022/03/16/17:18
 * @Description:
 */
@FeignClient("scloud-shop-service")
public interface ProductFeignService {

    /**
     * 获取流量包商品详情
     *
     * @param productId
     * @return
     */
    @GetMapping("api/product/v1/detail/{product_id}")
    JsonData detail(@PathVariable("product_id") long productId);
}
